package com.mav.mapper;

import com.mav.pojo.Student;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface StudentMapper {
    List<Student> list(String name, Integer degree, Integer clazzId);

    void deleteById(List<Integer> ids);

    void insert(Student student);

    Student findById(Integer id);

    void updateById(Student student);

    void disciplinaryViolation(Integer id, Short score);

    @MapKey("name")
    List<Map<String, Object>> CountStudentDegreeData();
    @MapKey("clazzName")
    List<Map<String, Object>> studentCountData();
}
